package top.wardyan.common.util;

public class MailUtil {
//	
//	static final Prop PROP = ConfigProp.load();
//	static final String URL = PROP.get("mailurl");
//	static final String DATA = PROP.get("maildata");
//	static final String TOKEN = PROP.get("mailtoken");
//	
//	public static boolean mail(String subject, String content, String to) {
////		String rs = "";
////		try {
////			//subject = URLEncoder.encode(subject, "utf8");
////			//content = URLEncoder.encode(content, "utf8");
////			//rs = HttpUtil.post(URL, String.format(DATA, to, subject, content));
////			rs = HttpUtil.post(URL, new HashMap<String, Object>() {{
////				// maildata=to=%s&subject=%s&content=%s&token=top.wardyan.wdevservice
////				put("to", to);
////				put("subject", subject);
////				put("content", content);
////				put("token", TOKEN);
////			}});
////		}catch(Exception e) {
////			e.printStackTrace();
////		}
////		return rs != null && (rs.equals("true") || rs.equals("true\n"));
//		return Aop.get(YTMailService.class).send(to, subject, content);
//	}
//	
//	
//	public static void main(String[] args) {
//		System.out.println(mail("测试本地邮件发送", "发送内容2", "harrydeep@wardyan.top"));
//	}

}
